//package com.kws.merchant.controller;
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.kws.common.core.domain.R;
//import com.kws.merchant.domain.po.DevicePo;
//import com.kws.merchant.domain.po.ShopCartPo;
//import com.kws.merchant.domain.vo.GoodsInfoVo;
//import com.kws.merchant.domain.vo.ShopCartVo;
//import com.kws.merchant.service.ShopCartService;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//
///**
// * @author : zhangbenting
// * @date : 2024/10/31 16:58
// * @Version: 1.0
// */
//@RequestMapping("/shopCartManage")
//@RestController
//@Api(value = "用户服务-购物车管理", tags = "用户服务-购物车管理")
//public class ShopCartController {
//
//    @Autowired
//    private ShopCartService shopCartService;
//
//    @ApiOperation("获取购物车信息列表")
//    @PostMapping("/getShopCartList")
//    @ApiOperationSupport(order = 1, includeParameters = {
//            "devicePo.pageSize",
//            "devicePo.totalPage"
//    })
//    public R<Page<ShopCartVo>> getShopCartList(@RequestBody DevicePo devicePo) {
//        return R.ok(shopCartService.getShopCartList(devicePo));
//    }
//
//    @ApiOperation("商品添加购物车")
//    @PostMapping("/addShopCartGoods")
//    @ApiOperationSupport(order = 2, includeParameters = {
//            "shopCartPo.goodsId",
//            "shopCartPo.specificationId",
//    })
//    public R<Boolean> addShopCartGoods(@RequestBody ShopCartPo shopCartPo) {
//        return R.ok(shopCartService.addShopCartGoods(shopCartPo));
//    }
//
//    @GetMapping("/removeShopCartGoods")
//    @ApiOperation("删除购物车商品")
//    @ApiOperationSupport(order = 2, includeParameters = {
//            "shopCartPo.shopsIds"
//    })
//    public R<Boolean> removeShopCartGoods(@RequestBody ShopCartPo shopCartPo) {
//        return R.ok(shopCartService.removeBatchByIds(shopCartPo.getGoodsIds()));
//    }
//
//    @PostMapping("/settlementShopCartGoods")
//    @ApiOperation("结算购物车商品")
//    public R<Boolean> settlementShopCartGoods(@RequestParam List<Long> ids) {
//        return R.ok();
//    }
//
//}
